#include <iostream>
#include <functional>
#include "Client.hpp"
#include "Thread.hpp"

int main()
{
    Client client;
    client.Init();

    Thread recver(std::bind(&Client::Receive, &client));
    Thread sender(std::bind(&Client::Send, &client));

    recver.Start();
    sender.Start();

    recver.Join();
    sender.Join();
    
    return 0;
}